package com.tensquare.encrypt.rsa;

/**
 * rsa加解密用的公钥和私钥
 * @author Administrator
 *
 */
public class RsaKeys {

	//生成秘钥对的方法可以参考这篇帖子
	//https://www.cnblogs.com/yucy/p/8962823.html

	//服务器公钥
	private static final String serverPubKey =
			"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7R9H5n1ItWuANyhWZZBK\n" +
			"hczeajatbtSPVaKufl85rMRwVYHX19SCGRdbtiSHH5P4EsIPZIAr16HMqMoqOys+\n" +
			"UX/XzdO+DdvUqWVKXvDFGTUYuykjHVufm86Aw1C+DxDeCn6foffTUYGPamz3fioe\n" +
			"6CL2t43E3xlKkFKCjKfRimGyFFOhAQTfJx76gXF9e93CwRtk7XLTrHUdrS4FevvK\n" +
			"KPpSARfDr3E0xr87uMoB0Ec2Pg1/Z/sk7HQASNfYdjRkUurr8ZxmfD3TTPWVrog7\n" +
			"/XcE3CP2eiy0sy4I2UY6p6SBHhxRzw33FlFVI8Jrot9EoYIiPRO3hJnORLRatNzU\n" +
			"NwIDAQAB";

	//服务器私钥(经过pkcs8格式处理)
	private static final String serverPrvKeyPkcs8 =
			"MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDtH0fmfUi1a4A3\n" +
			"KFZlkEqFzN5qNq1u1I9Voq5+XzmsxHBVgdfX1IIZF1u2JIcfk/gSwg9kgCvXocyo\n" +
			"yio7Kz5Rf9fN074N29SpZUpe8MUZNRi7KSMdW5+bzoDDUL4PEN4Kfp+h99NRgY9q\n" +
			"bPd+Kh7oIva3jcTfGUqQUoKMp9GKYbIUU6EBBN8nHvqBcX173cLBG2TtctOsdR2t\n" +
			"LgV6+8oo+lIBF8OvcTTGvzu4ygHQRzY+DX9n+yTsdABI19h2NGRS6uvxnGZ8PdNM\n" +
			"9ZWuiDv9dwTcI/Z6LLSzLgjZRjqnpIEeHFHPDfcWUVUjwmui30ShgiI9E7eEmc5E\n" +
			"tFq03NQ3AgMBAAEC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OuWAf/qHOK/9yJvIUlLrbdj2PYVCQtUb59B5cz46o\n" +
			"tdyM6GUDfwL3R1e4GRWH8zWZ9Kwam88nCzsH91NHAoGBAKXVupB+JqxI8eZhl9PP\n" +
			"Mmy3U3TGogSFjv77jmwEgmWzrUWpXKe19oiZF6lRz/YIEAO2QXR/iBOt/gG91oRx\n" +
			"LeHGaGbt8NbBjEJrF3SRPL93YnwL/PgrgiLcOd8iezmVfqcqMfrBCOTxKHFApyZZ\n" +
			"66jbs4nremAEOEZT6VHYtRpf";

	public static String getServerPubKey() {
		return serverPubKey;
	}

	public static String getServerPrvKeyPkcs8() {
		return serverPrvKeyPkcs8;
	}
	
}
